package main

import "fmt"

func main() {
	var a = []int{1, 2, 3}
	fmt.Print(a)
	// a[4] = 4  错误的语句，数组不能改变大小
	fmt.Println(a)
	// 输出九九乘法表
	printMul(9)
}

func printMul(n int) {
	for i := 1; i <= n; i++ {
		for m := 1; m <= i; m++ {
			fmt.Printf("%d*%d=%d \t", m, i, i*m)
		}
		fmt.Println()
	}
}
